<!-- 
 * 科研机构管理新增
 * @author: 
 * @since: 2022-05-20
 * add.vue
-->
<template>
  <div class="scientific-add-container">
    <scientificOrganization :type="1"></scientificOrganization>
  </div>
</template>

<script setup>
import { onMounted, onUnmounted } from 'vue';
import { useRouter } from 'vue-router';
import { useStore } from 'vuex';
const router = useRouter();
const store = useStore();


onMounted(() => {
  const level = router.currentRoute.value.meta.level
  store.dispatch('setting/setRouterCut', level);

})
onUnmounted(() => {
  store.dispatch('setting/setRouterCut', 2);
})


</script>

<style lang="scss" scoped></style>
